import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
    {
        path: "/",
        component: () => import("../views/Lub"),
    },
    {
        path: "/Home",
        component: () => import("../views/Lub"),
    },
    {
        path: "/Work",
        component: () => import("../views/Lub")
    },
    {
        path: "/Contact",
        component: () => import("../views/Lub")
    },
    {
        path: "/Join",
        component: () => import("../views/Lub")
    },
];


const router = new VueRouter({
    routes,
    scrollBehavior(to, from, savedPosition) {
        if (to.path === "/Work") {
            return {
                x: 1000,

            }
        }else if (to.path === "/Contact"){
            return {
                selector:"#content"

            }
        }
    }
},)

export default router
